<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
    <title>爱贝儿医</title>
    <link rel="stylesheet" href="style/common.css?<?=版本?>">
    <link rel="stylesheet" href="style/style.css" media="screen" type="text/css" />
    <!--<script type="text/javascript" src="js/jquery.js"></script>-->
</head>
<body>
<!-- 配置文件 -->
<script src="resource/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="./ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="./ueditor/ueditor.all.min.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('container', {
        toolbars: [
            [ 'fullscreen', 'source', '|', 'undo', 'redo', '|',
                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                'directionalityltr', 'directionalityrtl', 'indent', '|',
                'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|','link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
                'simpleupload', 'insertimage', 'emotion', 'scrawl', 'attachment', 'map', 'gmap', 'insertframe']
        ],
        autoHeightEnabled: true,
        autoFloatEnabled: true
    });
    function shouqi1(){
        $("#wancheng").submit();
    }
</script>
<!-- 修改群资料 -->
<?php
$c用户=new C用户($bm->vo信息中心);
$群id=$_GET['群id'];
$群信息 = $c用户->fc查找群信息($群id);
$群资料 = $bm->生成有效链接('QunTitle',$_GET['state']);
if($_POST)
{
    $群详情 = new Do群详情();
    $群详情->set_id($群id);
    $群详情->set_群名称($_POST['群名称']);
    $群详情->set_主题($_POST['content']);
    $res = $群详情->save();
    if($res)
    {
        echo "<script>alert('修改成功！');location.replace(location.href='".$群资料."&群id=".$群id."&用户id=".$_GET['用户id']."&父id=0');</script>";
    }
}

?>
<form id="wancheng" action="" method="post">
<div class="header">
	<a href="<?=$群资料?>&群id=<?=$群id?>&用户id=<?=$_GET['用户id']?>&父id=0" class="return">返回</a><input name="" type="button" class="header_btn" value="保存" onclick="shouqi1()" />
</div>
<!--群资料编辑-->
<div class="class_view_edit">
    <h2>修改群名称：</h2>
    <div class="class_view_edit_title"><input name="群名称" type="text" value="<?=$群信息['群名称']?>"></div>
    <h2 style="margin-top:16px; ">修改群说明：</h2>
    <div class="class_view_edit_more">
        <textarea id="container" name="content"><?=$群信息['主题']?></textarea>
    </div>
</div>
</form>



<!--<div id="chat">
    <div class="edit-qunziliao-bg"></div>
    <div class="">
        
            <div class="edit-qunziliao-name">
                <div class="p" style="margin-left:8px;">群名称</div>
                <div class="p-input"></div>
            </div>
            <div class="edit-qunziliao-inst">
                <div class="p" style="margin-left:8px;">群说明</div>
                <div class="p-edit">
                    
                </div>
            </div>
            <div class="wancheng" style="margin-top: 20px;">完成</div>
        
    </div>
</div>-->
</body>
</html>
